Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prebuild for macos arm64, enable prebuilds to be run individually. #2451

Open
wants to merge 6 commits into
base: prebuilds
Choose a base branch
from

Conversation

btsimonh
Copy link

@btsimonh btsimonh commented Nov 1, 2024

Thanks for contributing!

  • Have you updated CHANGELOG.md? - no, there is none for prebuild?
  1. adds ability to select the build target. Default is all of '["ubuntu-latest", "windows-latest", "macos-13", "macos-latest"]'.
  2. update to use node 22 since it is the LTS version.
  3. update runners to be from "ubuntu-latest", "windows-latest", "macos-13", "macos-latest".
  4. add some library paths to prebuild/macOS/binding.gyp which enable macos arm64 to build.

for best effect, combine with #2450 to result in smaller prebuilds

I note that 2 tests are failing during prebuild - on the original and on this branch (at least on linux - maybe a font issue). Maybe we should build the libraries from source, as test on main repo is not failing?

Also note #2354 - almost identical changes for actually building on arm64. But I have not included signing. I have never needed to sign a .node or a library before? - but then I don't have an M1/M2 mac.

@zbjornson @jamesbvaughan - pls. comment or combine the two PRs?

@btsimonh
Copy link
Author

btsimonh commented Nov 1, 2024

latest run with both PRs in place here:
https://github.com/btsimonh/node-canvas/actions/runs/11628871040
release files here:
https://github.com/btsimonh/node-canvas/releases/tag/v3.0.0-rc2
(when the workflow completes).

@btsimonh
Copy link
Author

btsimonh commented Nov 1, 2024

ahh... if I test without the container

    container:
      image: ${{ matrix.node < 18 && 'chearon/canvas-prebuilt:9' || 'zbbjornson/canvas-prebuilt:11' }}

in a separate test workflow, it does not fail?

@btsimonh btsimonh marked this pull request as draft November 1, 2024 14:37
@btsimonh btsimonh marked this pull request as ready for review November 1, 2024 16:56
@btsimonh btsimonh mentioned this pull request Nov 1, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant